package com.tsp_tux.demo.Service;

import com.tsp_tux.demo.Entity.RespBean;
import com.tsp_tux.demo.Entity.User;
import com.tsp_tux.demo.Entity.UserHead_List;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 张帅 童一凡
 */
public interface UserService {

    List<UserHead_List> getHead(String uid);
    User SearchUserName(String name);

    List<User> SearchUserNamemohu(String name);

    List<User> SearchUserID(String uid);

    RespBean changeIcon(String uid,MultipartFile iconFile);

    int checkVerifyCode(String inputCode,HttpSession session);

    RespBean changeEmail(String uid,String email);

    @Async
    void sendChangeEmailVerifyCode(String uid,String email,String verifyCode);
}
